<%@ page language="java" import="com.inspur.bean.*"%>
<%@ page language="java" import="com.inspur.service.*"%>
<jsp:useBean id="user" class="com.inspur.bean.UserBean"></jsp:useBean>
<jsp:setProperty property="password" name="user" param="password" />
<jsp:setProperty property="userName" name="user" param="userName"/>
<jsp:useBean id="checkUser" class="com.inspur.service.UserCheck"></jsp:useBean>
<%
	if(checkUser.checkUser(user)){
		request.getRequestDispatcher("welcome.jsp").forward(request, response);
	}else{
		request.getRequestDispatcher("loginerr.jsp").forward(request, response);
	
	}
%>